using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using DesigningViews.Models;

namespace DesigningViews.Controllers
{
    public class ProductController : Controller
    {
        //
        // GET: /Product/

        public ViewResult Index()
        {
        	var products = new[]
        		{
					new Product {Name = "Wii", Price = 249.99m},
					new Product {Name = "XBox", Price = 299.99m},
					new Product {Name = "PS3", Price = 949.99m}
        		};

            return View(products);
        }

    }
}
